package com.netdisk.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "分享表")
public class Share {

    @ApiModelProperty(value = "分享id")
    private Integer id;

    @ApiModelProperty(value = "文件id")
    private Integer fileId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 分享链接的唯一标识符，用于前端访问分享内容
     */
    @ApiModelProperty(value = "分享链接的唯一标识符")
    private String shareId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "过期时间")
    private LocalDateTime expiresAt;

    @ApiModelProperty(value = "删除时间")
    private LocalDateTime deletedAt;

}
